﻿ using System;


namespace Class_Object
{
    class Triangle
    {
        private int x;
        private int y;
        private int z;

        public void SetValues()
        {
            Console.WriteLine("Triangle : ");
            Console.Write("Enter X : ");
            this.x = Convert.ToInt32(Console.ReadLine());
            Console.Write("Enter Y : ");
            this.y = Convert.ToInt32(Console.ReadLine());
            Console.Write("Enter Z : ");
            this.z = Convert.ToInt32(Console.ReadLine());
        }

        public void ShowInfo()
        {
            Console.WriteLine("Output : ");
            Console.WriteLine("X = " + this.x);
            Console.WriteLine("Y = " + this.y);
            Console.WriteLine("Z = " + this.z);
        }

        public string TestTriangle()
        {
            if (x == y && x == z)
                return "Equilateral";
            else if (x == y || x == z || y == z)
                return "Isosceles";
            else
                return "Scalene";
        }
    }
}
